﻿#pragma once

#include <QtWidgets>
#include <QtSql>

QT_BEGIN_NAMESPACE
class QDialogButtonBox;
class QPushButton;
class QSqlTableModel;
QT_END_NAMESPACE

class QWidgetDlPara2 : public QWidget
{
    Q_OBJECT

public:
    explicit QWidgetDlPara2(QWidget *parent = nullptr,QString tableName="");
public slots:
    void submit();
    void revert();
    void contextMenuEvent(QContextMenuEvent *event);
    void deleteRow();
    void insertRow();
public:
    QMenu   *m_qmenu;                           //操作菜单

    QAction *m_qaction_delect;                  //删除动作
    QAction *m_qaction_insert;                  //插入动作
    QAction *m_qaction_revert;                  //插入动作
    QAction *m_qaction_submit;                  //插入动作

public:
    QSqlTableModel *m_qsltablemodel;
    QTableView     *m_qtableview;

};
void initDLSQLITE(QString path);

#pragma execution_character_set("utf-8")
